const types = {
    type: 'IMPORT_JS',
    icon: '',
    title: '',
    version: '1.0.0',
    author: 'XJ王大哥(QQ2357942846)',
    isInvisibleWidget: true,
    isGlobalWidget: true,
    properties: [
        {
            key: 'JS链接',
            label: '链接列表(用,隔开)',
            valueType: 'string',
            defaultValue: ''
        },
    ],
    methods: [],
    events: []
};

class XJWidget extends InvisibleWidget {
    constructor(p) {
        super(p);
        Object.assign(this, p);
    }
}

for (let i of types.methods) i.blockOptions = { ...i.blockOptions, callMethodLabel: false };

exports.types = types;
exports.widget = XJWidget;